<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>个人中心</title>
    <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/mall.css" />	
</head>
<style>
</style>
<body>
	<div class="mui-content">
	    <div class="mem_top">
	    	<div class="mem_toux mem_infobox">
	    		{if $info_user['logo'] == null}
		    		<img id="touxiang" src="__INDEX__/images/member.jpg">
		    		{else /}
		    		<img id="touxiang" src="{$info_user['logo']}">
		    		{/if}
	    	</div>
	    	<div class="mem_nambox">
	    		<p class="mem_nam">{$info_user['user_name']}</p>
	    		<p class="mem_num">{$info_user['mobile']}</p>
	    	</div>
	    </div>
	    <ul class="mem_lisbox clearfix">
	    	<li id="yj">
	    			<p>佣金</p>
	    			<p>￥<em id="yongjin">{$info_user['commission']}</em></p>
	    		</li>
	    		<li id="yu">
	    			<p>余额</p>
	    			<p>￥<em id="yue">{$info_user['balance']}</em></p>
	    		</li>
	    		<li id="jf">
	    			<p>鼓励金</p>
	    			<p>￥<em id="jifen">{$info_user['score']}</em></p>
	    		</li>
	    </ul>
	    <ul class="mui-table-view mem_dhlis">
	    	{if $info_user.is_agent!=1}
	    	<li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/step1')}"><i class="iconfont icon-dianpu1"></i>申请开店</a>
		    </li>
		    {else/}
				<li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/step1')}"><i class="iconfont icon-dianpu1"></i>我的店铺</a>
		    	</li>
		   
			{/if}
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/union')}"><i class="iconfont icon-lianmengshangjiarenzheng"></i>联盟商圈</a>
		    </li>
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" <a href="{:url('member/friends')}"><i class="iconfont icon-tianjiahuiyuan"></i>推广中心</a>
		    </li>
		</ul>
		<ul class="mui-table-view mem_dhlis">
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/help')}"><i class="iconfont icon-bangzhuzhongxin"></i>帮助中心</a>
		    </li>
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/feedback')}"><i class="iconfont icon-xinxifankui"></i>信息反馈</a>
		    </li>
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/about')}"><i class="iconfont icon-guanyuwomen"></i>关于我们</a>
		    </li>
		</ul>
	    <ul class="mui-table-view mem_dhlis">
		    <li class="mui-table-view-cell">
		        <a class="mui-navigate-right" href="{:url('member/more')}"><i class="iconfont icon-gengduo2"></i>更多设置</a>
		    </li>
		</ul>
	</div>
	<input type="hidden" id='is_credentials' />
	<div id="footer"></div>
	{include file="member/bottom" /}
	
</body>
</html>
{include file="public/footer" /}
<script type="text/javascript">
	mui.init();
	var aniShow = "pop-in";
	//页面跳转
	mui('#footer-list').on('tap', 'a', function() {
		var id = this.getAttribute('href');
		var href = this.href;
		mui.openWindow({
			id: id,
			url: this.href,
			show: {
				aniShow: aniShow
			},
			waiting: {
				autoShow: false
			}
		});
	});
</script>
<script>
	//个人资料
	$(".mem_infobox").click(function(){
	 parent.location.href="{:url('member/member')}"
	});
	//佣金
	$("#yj").click(function(){
	 parent.location.href="{:url('member/yongj_record')}"
	});
	//余额
	$("#yu").click(function(){
	 parent.location.href="{:url('member/yue_record')}"
	});
	//鼓励金
	$("#jf").click(function(){
	 parent.location.href="{:url('member/score_record')}"
	});
	
	$("#login_out").click(function(){
		layer.confirm('您确定要退出吗？', {
			btn: ['确定', '取消'] //按钮
		}, function() {
			$.ajax({
				url: "{:url('index/logout')}",
				data: {},
				success: function(data) {
					layer.msg("退出成功", {
						icon: 1,
						time: 1000
					}, function() {
						window.location.href = data.url;
					});
				}
			})
		})
	});
</script>

